package HospitalSystem.src;

import java.util.ArrayList;

public class Administrative {
    private String Adname;
    private ArrayList<Doctor> DoctorList =new ArrayList<>();
    private Administrative[] AdList = new Administrative[100];
    public Administrative() {
    }

    public Administrative(String adname) {
        Adname = adname;
    }

    public Administrative(String adname, ArrayList<Doctor> doctorList) {
        this(adname);
        DoctorList = doctorList;
    }

    public void addDoctor(Doctor doctor) {
        DoctorList.add(doctor);
    }

    public void removeDoctor(Doctor doctor) {
        DoctorList.remove(doctor);
    }
    public String getAdname() {
        return Adname;
    }

    public void setAdname(String adname) {
        Adname = adname;
    }

    public ArrayList<Doctor> getDoctorList() {
        return DoctorList;
    }

    public void setDoctorList(ArrayList<Doctor> doctorList) {
        DoctorList = doctorList;
    }
}
